﻿<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/static/include/top.jsp"%>
<script>document.title="企业列表";</script>
<script type="text/javascript">

function queryUnit(){
	searchForm.action = "${baseURL}/monitor/rwud";
	searchForm.submit();
}

</script>
<c:set var="v_month" value="12"></c:set>
    <table>
	<tbody>
		<tr>
		<th><img src="${ctx}/static/images/pages/cen/rig/ico_01.png"
				align="absmiddle">&nbsp;企业直报情况统计</th></tr>
		<tr class="tab_grey">
		<td>
		<form name="searchForm" action="${baseURL}/monitor/rwud" method="get">
		    年份：<select id="year" name="year" onchange="queryUnit()" style="width:80px"  class="tab_textbut">
				<c:forEach var="year" begin="2017" end="${nowYear}">
	                   <option value="${year}" ${s_year == year? 'selected':''}>${year}</option>
	            </c:forEach>
           </select>
		</form>
    </td>
    </tr>
    </tbody>
	</table>
  <table id="listTable" style="width:2000px;">
	<tbody>
	<tr>
		<th width="30px">序号</th>
		<th width="50px">四上/非四上</th>
		<th width="50px">用海类型</th>
		<th width="200px">企业名称</th>
		<th width="50px">所属单位</th>
		<th width="100px">产业类型</th>
		<c:forEach begin="1" var="month" end="${v_month}">
			<th width="30px" style="text-align:center;">${month}月</th>
		</c:forEach>
    </tr>
	<c:forEach var="oneRow" items="${obj}" varStatus="p">
	<tr>
		<td align="left">${p.index+1}</td>
		<td align="left">${oneRow['is_ss']}</td>
		<td align="left">${oneRow['org_type']}</td>
		<td align="left">${oneRow['org_name']}</td>
		<td align="left">${oneRow['city']}</td>
		<td align="left">${oneRow['hy']}</td>
		<c:forEach begin="1" var="month" end="${v_month}">
			<c:set var="m" value="month${month}"></c:set>
			<td style="text-align:center;">${oneRow[m]}</td>
		</c:forEach>
	</c:forEach>
	</tr>
    </tbody>
  </table>

<%@ include file="/static/include/bottom.jsp"%>
